home *** CD-ROM | disk | FTP | other *** search
Modula Implementation | 1992-04-08 | 1.4 KB | 55 lines |
- (* %filename% -- window *)
- (* Created %date% %time% by AppMaker *)
-
- (* For most applications, your window will have custom view classes. *)
- (* This module provides a convenient place to put these classes. *)
- (* If you specify a custom classname for any view item, AppMaker will *)
- (* generate some skeleton code for that custom class. It generates *)
- (* a declaration of that class with a fields method; it generates *)
- (* the body of the fields method; and AppMaker generates code for *)
- (* dead strip suppression. For some view items, AppMaker generates *)
- (* other methods it knows you will need; for instance, for a *)
- (* TTextListView, AppMaker generates a GetItemText method. *)
-
- IMPLEMENTATION MODULE U%windname%;
-
- FROM Object IMPORT
- MEMBERTEST;
-
- FROM UObject IMPORT
- TObject;
- FROM UMacAppUtilities IMPORT
- gDeadStripSuppression;
- FROM UMacApp IMPORT
- TDocument, TWindow,
- NewTemplateWindow;
- FROM ResourceDefs IMPORT
- k%windname%ID;
- IMPORT
- UAMLibraryM;
-
- (*${QINSPECTOR*)
- FROM UMacAppUtilities IMPORT
- bClass,
- DoToFieldMETHOD;
- (*$}*)
-
- %for each item gen classMethods%
- (*SEG AOpen*)
- (*----------*)
- PROCEDURE New%windname% (itsDocument: TDocument): TWindow;
- VAR
- theWindow: TWindow;
- BEGIN
- theWindow := NewTemplateWindow (k%windname%ID, itsDocument);
-
- RETURN theWindow;
- END New%windname%;
-
- BEGIN
- IF gDeadStripSuppression THEN
- %for each item gen gDeadStripSuppression%
-
- END(*IF*);
- END U%windname%.
-